home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- if the castNum of sprite 11 = the number of member "nob" then
- repeat while the mouseDown
- if (the mouseH > 220) and (the mouseH < 502) then
- set the locH of sprite 11 to the mouseH
- updateStage()
- end if
- end repeat
- end if
- end
-
- on mouseUp
- global firstMonthlyDay, stamp
- if the castNum of sprite 11 = the number of member "nob" then
- cursor(4)
- set MaxScroll to count(stamp)
- set newLocation to the locH of sprite 11
- if newLocation > 480 then
- set firstMonthlyDay to MaxScroll - 11
- else
- if newLocation < 220 then
- set firstMonthlyDay to 1
- else
- set MoveDegree to (newLocation - 220) / 279.0
- set MoveLength to integer(MaxScroll * MoveDegree) - 11
- set firstMonthlyDay to 4 + MoveLength
- if firstMonthlyDay > (MaxScroll - 11) then
- set firstMonthlyDay to MaxScroll - 12
- end if
- if firstMonthlyDay < 1 then
- set firstMonthlyDay to 1
- end if
- put firstMonthlyDay
- end if
- end if
- resetMonthlyDays()
- end if
- end
-